#!python

print 'Finonacci series: the sum of two elements defines the next'

def calFibonacci(c):
    a, b = 0,1;
    i = 0;
    while True:
	if i>c-1: break;
	i+=1;
	print b;
	a, b = b, a+b;
if __name__=='__main__':
    c = int(raw_input('input the max index of the fibonacci serie: '));
    calFibonacci(c);
